package com.education.wisdom.pojo;

import com.education.common.core.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 章节收藏表 jr_zj_collections
 *
 * @author ruoyi
 * @date 2019-01-02
 */
public class ZjCollections extends BaseEntity
{
	private static final long serialVersionUID = 1L;

	/**  */
	private Integer id;
	/** 收藏人编号 */
	private String userId;
	/** 收藏时间 */
	private Date createtime;
	/** 章节编号 */
	private Integer catalogId;
	/** 收藏标记 */
	private String flag;

	public void setId(Integer id)
	{
		this.id = id;
	}

	public Integer getId()
	{
		return id;
	}
	public void setUserId(String userId)
	{
		this.userId = userId;
	}

	public String getUserId()
	{
		return userId;
	}
	public void setCreatetime(Date createtime)
	{
		this.createtime = createtime;
	}

	public Date getCreatetime()
	{
		return createtime;
	}
	public void setCatalogId(Integer catalogId)
	{
		this.catalogId = catalogId;
	}

	public Integer getCatalogId()
	{
		return catalogId;
	}
	public void setFlag(String flag)
	{
		this.flag = flag;
	}

	public String getFlag()
	{
		return flag;
	}

	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
				.append("id", getId())
				.append("userId", getUserId())
				.append("createtime", getCreatetime())
				.append("catalogId", getCatalogId())
				.append("flag", getFlag())
				.toString();
	}
}
